<template>
    <div class="model-form">
        <el-page-header @back="goBack" content="详情">
        </el-page-header>
        <el-form class="viewForm" label-width="80px">
                    <el-col :span="20">
                        <el-form-item label="名称">
                            <div v-html="viewModel.name"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="封面">
                            <div v-html="viewModel.logo"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="面额">
                            <div v-html="viewModel.money"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="使用门槛">
                            <div v-html="viewModel.minPrice"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="每人限领">
                            <div v-html="viewModel.limitNum"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="发放开始时间">
                            <div v-html="viewModel.sendBeginTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="发放截止时间">
                            <div v-html="viewModel.sendEndTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="优惠券开始时间">
                            <div v-html="viewModel.useBeginTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="优惠券截止时间">
                            <div v-html="viewModel.useEndTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="固定天数">
                            <div v-html="viewModel.useDay"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="卡券库存">
                            <div v-html="viewModel.stock"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="使用说明">
                            <div v-html="viewModel.note"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="添加时间">
                            <div v-html="viewModel.addDate"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="20">
                        <el-form-item label="活动范围">
                            <div v-html="viewModel.couponScope"></div>
                        </el-form-item>
                    </el-col>
        </el-form>
    </div>
</template>

<script>
    import common from "@/mixins/common.js";

    export default {
        name: "shopCouponRule_view",
        mixins: [common],
        data() {
            return {
                viewModel: {},
                activeIndex: "1"
            }
        },
        async mounted() {
            let id = this.$route.query.id;
            let data = {};
            data.id = id;
            let res = await this.$http.form("/shopCouponRule/view", data);
            if (res.code === 200) {
                this.viewModel = res.data;
            }
        }
    }
</script>

<style scoped>

</style>